package com.zhongchaowuye.beans;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @program: 中超物业（excel系统）
 * @author：张雁佳
 * @create: 2024-11-20
 * @description: 定义系统默认首页面
 */
@Configuration
public class DefaultHomePage implements WebMvcConfigurer{
   @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("/login.html");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    }
}
